package bitwiseOperation;

//https://leetcode.cn/problems/single-number/description/
public class l_136 {
    public int singleNumber(int[] nums) {
        int ans = 0;
        for(int x: nums) ans ^= x;
        return ans;
    }
}
